<extend name="Base/common"/>
<block name="style">
    <style>
        #til {
            text-align: center;
            font-size: 19px;
            padding: 8px 0;
        }

        .wall {
            background-color: white;
            padding-top: 8px;
            padding-bottom: 5px;
        }

        .wallright p {
            font-size: 12px;
        }

        .use {
            background: #1AAD19;
            font-size: 16px;
            padding: 3px 20px 3px 10px;
            border-radius: 5px;
            color: white;
            float: right;
        }
    </style>


</block>


<block name="body">

    <div id="til" class="ts_nav">
        <span>我的钱包</span>
    </div>

    <!--现金遍历-->
    <foreach name="monInfo" item="v">
        <div class="wall" style="width: 100%; margin-top: 10px;">
            <div class="wallleft" style="float: left;width: 25%;">
                <img src="{$Think.config.HOME_IMG}wall.png" alt="" style="height: 80px;padding-top: 12px;">
            </div>
            <div class="wallright" style="float: left;width: 70%;">
                <p><span>现金抵用券</span><span style="padding-left: 50px;color: red;">&yen;{$v.dc_money}元</span></p>
                <p><span>折扣码：</span><span>{$v.dc_code}</span></p>
                <p>
                    <a href="../index.html" class="use">去使用</a>
                </p>
                <p><span>有效期：</span><span>{$v.dc_life_time}</span></p>
                <p>领取日期:<span style="padding-left: 10px;">{$v.dc_creat_time}</span></p>
                <p><span>状态：</span><span style="color: #088AEF">
                    <if condition="$v.dc_status">
                        可用
                    <else/>
                        已经使用
                    </if>


                </span></p>

            </div>
            <div style="height: 0px;clear: both;"></div>
        </div>
    </foreach>

    <!--折扣遍历-->
    <foreach name="perInfo" item="v">
        <div class="wall" style="width: 100%; margin-top: 10px;">
            <div class="wallleft" style="float: left;width: 25%;">
                <img src="{$Think.config.HOME_IMG}discount.png" alt="" style="height: 80px;padding-top: 12px;">
            </div>
            <div class="wallright" style="float: left;width: 70%;">
                <p><span>够拼折扣券</span><span style="padding-left: 50px;color: red;">{$v.dc_percent}折</span></p>
                <p><span>折扣码：</span><span>{$v.dc_code}</span></p>
                <p>
                    <!--<a href="../index.html" class="use">{$v.}</a>-->
                    <a href="../index.html" class="use">去使用</a>
                </p>
                <p><span>有效期：</span><span>{$v.dc_life_time}</span></p>
                <p>领取日期:<span style="padding-left: 10px;">{$v.dc_creat_time}</span></p>
                <p><span>状态：</span><span style="color: #088AEF">
                      <if condition="$v.dc_status">
                        可用
                    <else/>
                        已经使用
                    </if>
                </span></p>

            </div>
            <div style="height: 0px;clear: both;"></div>
        </div>
    </foreach>


</block>